package org.example.pojo;

import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class JavaType {
    /**
     * 英文名称
     */
    private String name;
    /**
     * 中文名称
     */
    private String description;

    private Map<String,Properties> propertiesMap = new HashMap<>();

   private List<Properties> propertiesList = new ArrayList<>();

   public void addProperties(Properties properties) {
       this.propertiesList.add(properties);
   }

   public void putProperties(Properties properties) {
       this.propertiesMap.put(properties.getName(), properties);
   }

}
